﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ShivamEMR.Model.Domain.ContactsDomain;
using System.ComponentModel.DataAnnotations;

namespace ShivamEMR.Model.Domain.CompanyDomain
{
  public  class Branch
    {
        #region Properties
        public int ID { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
        public string ShortName { get; set; }
        public string Description { get; set; }
        public string Notes { get; set; } 
        #endregion

        #region ForeignKeyProperties
        public Nullable< int> BranchGroupID { get; set; } 
        #endregion
    
        #region NavigationalProperties
        [ForeignKey("BranchGroupID")]
        public virtual BranchGroup Group { get; set; }
        public virtual ICollection<Address> Addresses { get; set; }
        public virtual ICollection<Contact> Contacts { get; set; }
        public virtual ICollection<Employee> Employees { get; set; }
        public virtual ICollection<Department> Departments { get; set; }
        #endregion
    }
}
